import Qt 4.7
import QtWebKit 1.0
import "../js/OAuth.js" as FutuAuth

Item {
    width: screenWidth
    height: screenHeight
    Rectangle {
        anchors.fill: parent;
        color: "steelblue"
        WebView {
            id: authWebView
            visible: false
            anchors.fill: parent
            anchors.margins: 20
            url: appItem.authWebViewUrl;
            settings.privateBrowsingEnabled: true
            settings.offlineWebApplicationCacheEnabled: false
            onLoadFinished: {
                console.log("WEBVIEW onLoadFinished, url: " + url);
                FutuAuth.nextAuthStep();
            }
        }
    }
}
